using MediatR;
using B.S.XZYData.ErrorCode;

namespace B.S.XZYData.Api.Read.Application.Command.Process
{
    /// <summary>
    /// 根据工序Id查询工序采集数据命令
    /// </summary>
    public class QueryProcessCollectionDataCommand : IRequest<ApiResult<List<ProcessCollectionDataDto>>>
    {
        /// <summary>
        /// 工序ID
        /// </summary>
        public long ProcessId { get; set; }
    }

    /// <summary>
    /// 工序采集数据传输对象
    /// </summary>
    public class ProcessCollectionDataDto
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public long ProcessId { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public string DataType { get; set; } = string.Empty;

        /// <summary>
        /// 数据名称
        /// </summary>
        public string DataName { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatorDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? Creator { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdatorDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? Updator { get; set; }
    }
} 